package demo.exception;

/**
 * @author lichenyi
 * @date 2017-11-13-0013.
 */
public abstract class BaseException extends Exception {

    String message;

    public BaseException(String message) {
        super(message);
    }

    public BaseException(String message, Throwable cause) {
        super(message, cause);
    }

    protected abstract String getErrorCode();


    public String getMessage(){
        return message;
    }
}
